package com.ruicar.afs.cloud.apply.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.apply.common.entity.ApplySignRelation;
import com.ruicar.afs.cloud.apply.contract.vo.SignRelationVO;
import com.ruicar.afs.cloud.image.entity.ComAttachmentFile;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: mingzhi.li
 * @date: 2020/8/7 16:45
 * @description:合同签约关系
 */
public interface ApplySignRelationMapper extends BaseMapper<ApplySignRelation> {

    /**
     * 获取签约关系表数据-进件和放款
     * @param condition
     * @return
     */
    List<SignRelationVO> getSignRelation(@Param("query") ComAttachmentFile condition);

    /**
     * 获取签约关系表数据-预审批
     * @param condition
     * @return
     */
    List<SignRelationVO> getPreRelation(@Param("query") ComAttachmentFile condition);

    /**
     * 获取签约人关系-见证人
     * @param condition
     * @return
     */
    List<SignRelationVO> getWitnessRelation(@Param("query") ComAttachmentFile condition);
}
